package com.spring.lesson001.demo8;
import java.util.List;
/**
 * @author vhans
 */
public class PrimaryBean {
    public interface IService {
    }

    public static class Service1 implements IService {
    }

    public static class Service2 implements IService {
    }

    private IService service;

    public void setService(IService service) {
        this.service = service;
    }

    public void setService1(List<IService> serviceList) {
        System.out.println("列表中有:"+serviceList);
    }

    @Override
    public String toString() {
        return "PrimaryBean{" +
                "service=" + service +
                '}';
    }
}
